import http from '@http/http'
export const _getUserInfo = (errMsg) => http.GET('/api/auth/userInfo', {}, errMsg)
// 登陆 本质还是发送了get请求，只是封装了一遍
// export const login = function (obj) {
// http.GET('/api/admin/login', obj)
// }

export const userList = (obj) => http.GET('/api/buildingManagement/pageList', obj)
export const removeUser = obj => http.POST('/api/buildingManagement/removeById2', obj)
export const removeUsers = obj => http.POST('/api/buildingManagement/removeByIds', obj)
export const editUser = obj => http.POST('/api/buildingManagement/edit', obj)
export const addBuilding = obj => http.POST('api/buildingManagement/addById', obj)
